<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${sessionScope.adminsEmail}" var="adminsEmail" />
<c:set value="${requestScope.response }" var="status" />
<!DOCTYPE HTML>
<html>
	<head>
		<%@ include file="/common/include/title.jsp"%>
		<title>重置密码 - 用户中心</title>
		<style type="text/css">
			.sdfs{width: 980px;height: 400px;margin: 120px auto;}
			h1{margin-left: 100px;}
		</style>
	</head>
	<body>
	<div class="sdfs">
		<h1>重置密码</h1>
		<article class="page-container">                                     
			<form class="form form-horizontal" id="formSubmit" action="${rootPath}/resetPassSubmit.htm" method="post">
				<input type="hidden" name="email" value="${adminsEmail}">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">邮箱：</label>
					<div class="formControls col-xs-5 col-sm-4">
						${adminsEmail}
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">密码：</label>
					<div class="formControls col-xs-5 col-sm-4">
						<input type="password" class="input-text" value="" placeholder="请输入密码"
							id="password" name="password">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">确认密码：</label>
					<div class="formControls col-xs-5 col-sm-4">
						<input type="password" class="input-text" value="" placeholder="请输入确认密码"
							id="confirmPassword" name="confirmPassword">
					</div>
				</div>
				<div class="row cl">
					<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2" style="margin-left: 230px;">
						<button class="btn btn-primary radius" type="submit" type="submit" style="width: 300px;font-size: 16px;height: 40px;">提交</button>  
					</div>
				</div>
			</form>
		</article>
		</div>
		<%@ include file="/common/include/footer.jsp" %>
		<script type="text/javascript">
			$(function(){
				$('.skin-minimal input').iCheck({
					checkboxClass: 'icheckbox-blue',
					radioClass: 'iradio-blue',
					increaseArea: '20%'
				});
				
				//表单验证
				 $("#formSubmit").validate({
					rules:{
						souPass:{
							required:true,
						},
						password:{
							required:true,
						},
						confirmPassword:{
							required:true,
							equalTo: "#password"
						},
					},
					onkeyup:false,
					focusCleanup:true,
					success:"valid"
					  /*  submitHandler:function(form){
						$(form).ajaxSubmit({
							type: 'post',
							success: function(data){ 
								
								 layer.msg(data.info,{icon:1,time:3000},function()
								{
									if(data.code == '0')
									{
										var index = parent.layer.getFrameIndex(window.name);
										parent.layer.close(index);
									}
								});
							},
							dataType:"json"
						});
					}   */
				}); 
				/* 初始化百度编辑器 */
				var ue = UE.getEditor('editor');
				 if(${status!=null})
		  		{
		  			layer.msg("${status}",{icon:1,time:3000});
		  				
		  		}; 
			});
		</script>
	</body>
</html>